package com.android.jay.lib_share.share;

import android.content.Context;

import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.ShareSDK;

/**
 * Created by wzp on 2020/2/3 0003.
 * <p>
 * 描述  ：todo
 */
public class ShareManager {

    private static ShareManager mShareManger =null;

    /**
     * 要分享到的平台
     */
    private Platform mCurrentPlatform;

    public static ShareManager getInstance(){

        if (mShareManger == null){
            synchronized (ShareManager.class){
                if (mShareManger == null){
                    mShareManger = new ShareManager();
                }
            }
        }

        return mShareManger;
    }


    private ShareManager() {
    }


    /**
     * 第一个执行的方法,最好在程序入口入执行
     *
     * @param context
     */
    public static void initSDK(Context context) {
        ShareSDK.initSDK(context);
    }


    /**
     * @author 应用程序需要的平台
     */
    public enum PlatofrmType {
        QQ, QZone, WeChat, WechatMoments;
    }

}
